FVG Zones with Signals█ OVERVIEW
"FVG Zones with Signals" is a technical analysis tool that identifies Fair Value Gaps (FVG) on the chart and draws customizable zones in the form of boxes. It is ideal for traders using price action and market structure strategies, helping to identify potential imbalance zones and trading opportunities based on breakout and exit signals. With flexible size filter settings, box styles, and signal options, the indicator ensures clarity and precision on the chart.
█ CONCEPTS
The indicator is designed to identify potential entry points for trades based on FVG breakouts or retests. For chart clarity, a size filter for FVGs is included, based on a multiplier of the average candle size over a specified period.
Why are FVGs important? FVG zones represent areas of market imbalance, often attracting price back to "fill" the gap. Larger gaps (with a higher size multiplier) have a greater chance of being retested, as they indicate deeper imbalances—leaving more unexecuted orders in those zones, which attracts liquidity. Market makers and institutions often return to these levels to "refresh" liquidity before further moves. However, not every large FVG is retested quickly—in strong trends, smaller imbalances may be ignored, and the location (e.g., near swing highs/lows) is critical for retest probability.
█ FEATURES
- FVG Detection: Identifies bullish and bearish FVGs based on size filters (Candle Size Period and FVG Size Multiplier), with automatic initialization of historical gaps up to 500 candles back.
- Customizable Boxes: Draws FVG boxes with adjustable border colors, background gradients, border styles (solid, dashed, dotted), border widths, and transparency for both the background and the 50% FVG midline.
- Breakout and Exit Signals: Generates "Break" signals (green upward triangle for breakouts above bearish FVG, red downward triangle for breakouts below bullish FVG) and "Exit" signals (circles for exiting the zone), with options to select signal types (Break, Exit, or Both). A break signal causes the box to disappear, leaving a triangle as a trace of the breakout, which may serve as a signal to open a position. Exit signals (circles) may also indicate entry opportunities but require additional confirmation, such as alignment with the main trend.
- Midline: Automatically draws a dashed line at the 50% FVG level with adjustable transparency, aiding in assessing price reactions within the zone.
- Box Limitation: Automatically removes old or inactive FVGs after 500 candles to avoid chart clutter.
- Alerts: Built-in alerts for all signal types, including price and FVG type descriptions.
█ HOW TO USE
Add to Chart: Apply the indicator to your TradingView chart via the Pine Editor or Indicators menu.
Configure Settings:
- FVG Settings: Adjust Candle Size Period (default 20) and FVG Size Multiplier (default 1) to filter out small gaps—higher values generate fewer but more significant FVGs.
- Box Settings: Configure colors and styles for bullish (green) and bearish (red) boxes, including background transparency (default 80) and midline transparency.
- Signal Settings: Select signal types (Break, Exit, or Both) in Signal Type. Breakout signals appear after a candle closes outside the zone, while exit signals appear when exiting an FVG without a full breakout.
- Styling: Customize signal colors (green for buy/up, red for sell/down) and shape sizes.
Interpreting Signals:
- Break Up Signal: A green triangle below the bar indicates a breakout above a bearish FVG, suggesting potential continuation of an uptrend.
- Break Down Signal: A red triangle above the bar indicates a breakout below a bullish FVG, suggesting potential continuation of a downtrend.
- Exit Up/Down Signal: A green/red circle indicates an exit from an FVG without a full breakout, which may signal the end of a correction or preparation for a reversal.
- FVG Zones: If the price returns to an FVG and fills the gap, it may indicate equilibrium; an unfilled gap often leads to a retest.
- Use signals in conjunction with other technical analysis tools for confirmation, such as RSI (to identify overbought/oversold conditions) or MACD (to confirm momentum). Analyze FVGs from higher timeframes—these zones act as stronger imbalance levels and carry greater structural significance.
Exit signals (retests without breakouts) tend to be most effective when traded in line with the current trend.
█ APPLICATIONS
- Price Action Trading: Use FVG zones as dynamic support and resistance levels. In an uptrend, look for buying opportunities in bullish FVGs, where price often tests the gap before continuing. Combining with RSI, MACD, or Fibonacci levels enhances the significance of zones.
- Breakout Strategies: Trade based on breakout signals from FVGs. A buy signal after breaking a bearish FVG may indicate a strong upward impulse, especially when supported by a rising MACD or RSI exiting oversold conditions.
Larger FVG gaps (higher multiplier) have a greater chance of retest, as they indicate deeper imbalances.
█ NOTES
- Test the indicator across different timeframes and markets (stocks, forex, crypto) to optimize size filters for your trading style.
- The indicator initializes historical FVGs up to 500 candles back, which may slow loading on longer charts.
- For best results, use on high-liquidity markets where FVGs are more frequently retested.
- In consolidation zones, the indicator may generate more false signals, so additional confirmation is recommended.
Cerca negli script per "market structure"
15-Min RSI Scalper [SwissAlgo]15-Min RSI Scalper  
 Tracks RSI Momentum Loss and Gain to Generate Signals 
-------------------------------------------------------
 WHAT THIS INDICATOR CALCULATES 
This indicator attempts to identify  RSI directional changes   (RSI momentum) using a step-by-step "ladder" method. It reads RSI(14) from the next higher timeframe relative to your chart. On a 15-minute chart, it uses 1-hour RSI. On a 5-minute chart, it uses 15-minute RSI, and so on.
 How the ladder logic works: 
The indicator doesn't track RSI all the time. It only starts tracking when RSI crosses into potentially extreme territory (these are called "events" in the code):
 
 For sell signals : when RSI crosses above a dynamic upper threshold (typically between 60-80, calculated as the 90th percentile of recent RSI)
 For buy signals : when RSI crosses below a dynamic lower threshold (typically between 20-40, calculated as the 10th percentile of recent RSI)
 
Once tracking begins, RSI movement is divided into 2-point steps (boxes). The indicator counts how many boxes RSI climbs or falls.
A signal generates only when:
 
 RSI reverses direction by at least 2 boxes (4 RSI points) from its extreme
 RSI holds that reversal for 3 consecutive confirmed bars
 
 Example:  Dynamic threshold is at 68. RSI crosses above 68 → tracking starts. RSI climbs to 76 (4 boxes up). Then it drops back to 72 and stays below that level for 3 bars → sell signal prints. The buy signal works the same way in reverse.
-------------------------------------------------------
 SIGNAL GENERATION METHODOLOGY 
 Sell Signal (Red Triangle) 
 
 RSI crosses above a dynamic start level (calculated as the 90th percentile of the last 1000 bars, constrained between 60-80)
 Indicator tracks upward progression in 2-point boxes
 RSI reverses and drops below a boundary 2 boxes below the highest box reached
 RSI remains below that boundary for 3 confirmed bars
 Red triangle plots above price
 
Reset condition: RSI returns below 50
 Buy Signal (Green Triangle) 
 
 RSI crosses below a dynamic start level (10th percentile of last 1000 bars, constrained between 20-40)
 Indicator tracks downward progression in 2-point boxes
 RSI reverses and rises above a boundary 2 boxes above the lowest box reached
 RSI remains above that boundary for 3 confirmed bars
 Green triangle plots below price
 
Reset condition: RSI returns above 50
-------------------------------------------------------
 TECHNICAL PARAMETERS 
All parameters are hardcoded:
 
 RSI Period: 14
 Box Size: 2 RSI points
 Reversal Threshold: 2 boxes (4 RSI points)
 Confirmation Period: 3 bars
 Reset Level: RSI 50
 Sell Start Range: 60-80 (dynamic)
 Buy Start Range: 20-40 (dynamic)
 Lookback for Percentile: 1000 bars
 
 Note:  Since the code is open source, users can modify these hardcoded values directly in the script to adjust sensitivity. For example, increasing the confirmation period from 3 to 5 bars will produce fewer but more conservative signals. Decreasing the box size from 2 to 1 will make the indicator more responsive to smaller RSI movements.
-------------------------------------------------------
 KEY FEATURES 
 Automatic Higher Timeframe RSI 
When applied to a 15-minute chart, the indicator automatically reads 1-hour RSI data. This is the next standard timeframe above 15 minutes in the indicator's logic.
 Dynamic Adaptive Start Levels 
Sell signals use the 90th percentile of RSI over the last 1000 bars, constrained between 60-80. Buy signals use the 10th percentile, constrained between 20-40. These thresholds recalculate on each bar based on recent data.
 Ladder Box System 
RSI movements are tracked in 2-point boxes. The indicator requires a 2-box reversal followed by 3 consecutive bars maintaining that reversal before generating a signal.
 Dual Signal Output 
Red down-triangles plot above price when the sell signal conditions are met. Green up-triangles plot below the price when buy signal conditions are met.
-------------------------------------------------------
 REPAINTING 
This indicator does not repaint. All calculations use "barstate.isconfirmed" to ensure signals appear only on closed bars. The request.security() call uses lookahead=barmerge.lookahead_off to prevent forward-looking bias.
-------------------------------------------------------
 INTENDED CHART TIMEFRAME 
This indicator is designed for use on 15-minute charts. The visual reminder table at the top of the chart indicates this requirement.
On a 15-minute chart:
 
 RSI data comes from the 1-hour timeframe
 Signals reflect 1-hour momentum shifts
 3-bar confirmation equals 45 minutes of price action
 
Using it on other timeframes will change the higher timeframe RSI source and may produce different behavior.
-------------------------------------------------------
 WHAT THIS INDICATOR DOES NOT DO 
 
 Does not predict future price movements
 Does not provide entry or exit advice
 Does not guarantee profitable trades
 Does not replace comprehensive technical analysis
 Does not account for fundamental factors, news events, or market structure
 Does not adapt to all market conditions equally
 
-------------------------------------------------------
 EDUCATIONAL USE 
This indicator demonstrates one approach to momentum reversal detection using:
 
 Multi-timeframe analysis
 Adaptive thresholds via percentile calculation
 Step-wise momentum tracking
 Multi-bar confirmation logic
 
It is designed as a technical study, not a trading system. Signals represent calculated conditions based on RSI behavior, not trade recommendations. Always do your own analysis before taking market positions.
-------------------------------------------------------
 RISK DISCLOSURE 
Trading involves substantial risk of loss. This indicator:
 
 Is for educational and informational purposes only
 Does not constitute financial, investment, or trading advice
 Should not be used as the sole basis for trading decisions
 Has not been tested across all market conditions
 May produce false signals, late signals, or no signals in certain conditions
 
Past performance of any indicator does not predict future results. Users must conduct their own analysis and risk assessment before making trading decisions. Always use proper risk management, including stop losses and position sizing appropriate to your account and risk tolerance.
 MIT LICENSE 
This code is open source and provided as-is without warranties of any kind. You may use, modify, and distribute it freely under the MIT License.
FVG Scanner ProFVG Scanner Pro — Smart Fair Value Gap Detector (with HTF context & proximity alerts)
What it does
FVG Scanner Pro automatically finds Fair Value Gaps (FVGs) on your current chart and (optionally) on a higher timeframe (HTF), draws them as color-coded zones, and notifies you when price comes close to a gap boundary using an ADR-based proximity trigger and (optional) volume confirmation. It’s designed for ICT-style gap trading, confluence building, and clean visual execution.
How it works:
FVG definition
* Bullish FVG (gap up): low > high  (the current candle’s low is above the high 2 bars ago).
* Bearish FVG (gap down): high < low  (the current candle’s high is below the low 2 bars ago).
* Gaps smaller than your Min FVG Size (%) are ignored. (Gap size = (top-bottom)/bottom * 100.)
Higher-timeframe logic (auto-selected)
The script auto picks a sensible HTF:
1–5m → 15m, 15m → 1H, 1H → 4H, 4H → 1D, 1D → 1W, 1W → 1M, small 1M → 3M, big ≥3M → 12M.
You can display HTF FVGs and even filter so current-TF FVGs only show when they overlap an HTF gap.
Proximity alerts (ADR-based)
The script computes ADR on the current chart timeframe over a user-set lookback (default 20 bars).
An alert fires when price moves toward the closest actionable boundary and comes within ADR × Multiplier:
Bullish: price moving down, within distance of the bottom of a bullish FVG.
Bearish: price moving up, within distance of the top of a bearish FVG.
Yellow ▲/▼ markers show where a proximity alert triggered.
Volume filter (optional)
Require volume to be greater than SMA(20) × multiplier to accept a newly formed FVG.
Lifecycle
Each gap remains active for Extend FVG Box (Bars) bars.
You can delete the box after fill, or keep filled gaps visible as gray zones, or hide them.
Color legend
Current-TF Bullish: Pink/Magenta box
Current-TF Bearish: Cyan/Turquoise box
HTF Bullish: Gold box
HTF Bearish: Orange box
Filled (if shown): Gray box
Alert markers: Yellow ▲ (bullish), Yellow ▼ (bearish)
Inputs (what to tweak)
Show FVGs: Bullish / Bearish / Both
Max Bars Back to Find FVG: collection window & cleanup guard
Extend FVG Box (Bars): how long a zone stays tradable/active
Min FVG Size (%): ignore micro gaps
Delete Box After Fill & Show Filled FVGs: choose how you want completed gaps handled
Show Alert Markers: show/hide the yellow proximity arrows
Show Higher Timeframe FVG: overlay HTF gaps (auto TF)
HTF Filter: only display current-TF gaps that overlap an HTF gap
ADR Lookback & Proximity Multiplier: tune alert sensitivity to your market & timeframe
Volume Filter & Volume > MA Multiple: require above-average volume for new gaps
Built-in alerts (ready to use)
Create alerts in TradingView (⚠️ “Once per bar” or “Once per bar close”, your choice) and select from:
🟢 Bullish FVG Proximity — price approaching a bullish gap bottom
🔴 Bearish FVG Proximity — price approaching a bearish gap top
✅ New Bullish FVG Formed
⚠️ New Bearish FVG Formed
The alert messages include the symbol and price; proximity markers are also plotted on chart.
Tips & best practices
Use FVGs with market structure (break of structure, swing points), order blocks, or liquidity pools for confluence.
On very low timeframes, raise Min FVG Size and/or lower Max Bars Back to reduce noise and keep things fast.
Extend FVG Box controls how long a zone is considered valid; align it with your holding horizon (scalp vs swing).
Information panel (top-right)
Shows your mode, current HTF, number of gaps in memory, active bull/bear counts, and current-TF ADR.
Algo Trading Signals - Buy/Sell System# 📊 Algo Trading Signals - Dynamic Buy/Sell System
## 🎯 Overview
**Algo Trading Signals** is a sophisticated intraday trading indicator designed for algorithmic traders and active day traders. This system generates precise buy and sell signals based on a dynamic box breakout strategy with intelligent position management, add-on entries, and automatic target adjustment.
The indicator creates a reference price box during a specified time window (default: 9:15 AM - 9:45 AM IST) and generates high-probability signals when price breaks out of this range with confirmation.
---
## ✨ Key Features
### 📍 **Smart Signal Generation**
- **Primary Entry Signals**: Clear buy/sell signals on confirmed breakouts above/below the reference box
- **Confirmation Bars**: Reduces false signals by requiring multiple bar confirmation before entry
- **Cooldown System**: Prevents overtrading with configurable cooldown periods between trades
- **Add-On Positions**: Automatically identifies optimal pullback entries for scaling into positions
### 📦 **Dynamic Reference Box**
- Creates a high/low range during your chosen time window
- Automatically updates after each successful trade
- Visual box display with color-coded boundaries (red=resistance, green=support)
- Mid-level reference line for market structure analysis
### 🎯 **Intelligent Position Management**
- **Automatic Target Calculation**: Sets profit targets based on average move distance
- **Add-On System**: Up to 3 additional entries on optimal pullbacks
- **Position Tracking**: Monitors active trades and remaining add-on capacity
- **Auto Box Shift**: Adjusts reference box after target hits for continued trading
### 📊 **Visual Clarity**
- **Color-Coded Labels**: 
  - 🟢 Green for BUY signals
  - 🔴 Red for SELL signals
  - 🔵 Blue for ADD-ON buys
  - 🟠 Orange for ADD-ON sells
  - ✓ Yellow for Target hits
- **TP Level Lines**: Dotted lines showing current profit targets
- **Hover Tooltips**: Detailed information on entry prices, targets, and add-on numbers
### 📈 **Real-Time Statistics**
Live performance dashboard showing:
- Total buy and sell signals generated
- Number of add-on positions taken
- Take profit hits achieved
- Current trade status (LONG/SHORT/None)
- Cooldown timer status
### 🔔 **Comprehensive Alerts**
Built-in alert conditions for:
- Primary buy entry signals
- Primary sell entry signals
- Add-on buy positions
- Add-on sell positions
- Buy take profit hits
- Sell take profit hits
---
## 🛠️ Configuration Options
### **Time Settings**
- **Box Start Hour/Minute**: Define when to begin tracking the reference range
- **Box End Hour/Minute**: Define when to lock the reference box
- **Default**: 9:15 AM - 9:45 AM (IST) - Perfect for Indian market opening range
### **Trade Settings**
- **Target Points (TP)**: Average move distance for profit targets (default: 40 points)
- **Breakout Confirmation Bars**: Number of bars to confirm breakout (default: 2)
- **Cooldown After Trade**: Bars to wait after closing position (default: 3)
- **Add-On Distance Points**: Minimum pullback for add-on entry (default: 40 points)
- **Max Add-On Positions**: Maximum additional positions allowed (default: 3)
### **Display Options**
- Toggle buy/sell signal labels
- Show/hide trading box visualization
- Show/hide TP level lines
- Show/hide statistics table
---
## 💡 How It Works
### **Phase 1: Box Formation (9:15 AM - 9:45 AM)**
The indicator tracks the high and low prices during your specified time window to create a reference box representing the opening range.
### **Phase 2: Breakout Detection**
After the box is locked, the system monitors for:
- **Bullish Breakout**: Price closes above box high for confirmation bars
- **Bearish Breakout**: Price closes below box low for confirmation bars
### **Phase 3: Signal Generation**
When confirmation requirements are met:
- Entry signal is generated with clear visual label
- Target price is calculated (Entry ± Target Points)
- Position tracking activates
- Cooldown timer starts
### **Phase 4: Position Management**
During active trade:
- **Add-On Logic**: If price pulls back by specified distance but stays within favorable range, additional entry signal fires
- **Target Monitoring**: Continuously checks if price reaches TP level
- **Box Adjustment**: After TP hit, box automatically shifts to new range for next opportunity
### **Phase 5: Trade Exit & Reset**
On target hit:
- Position closes with TP marker
- Statistics update
- Box repositions for next setup
- Cooldown activates
- System ready for next signal
---
## 📌 Best Use Cases
### **Ideal For:**
- ✅ Intraday breakout trading strategies
- ✅ Algorithmic trading systems (via alerts/webhooks)
- ✅ Opening range breakout (ORB) strategies
- ✅ Index futures (Nifty, Bank Nifty, Sensex)
- ✅ High-liquidity stocks with clear ranges
- ✅ Automated trading bots
- ✅ Scalping and day trading
### **Markets:**
- Indian Stock Market (NSE/BSE)
- Futures & Options
- Forex pairs
- Cryptocurrency (adjust timing for 24/7 markets)
- Global indices
---
## ⚙️ Integration with Algo Trading
This indicator is **algo-ready** and can be integrated with automated trading systems:
1. **TradingView Alerts**: Set up alert conditions for each signal type
2. **Webhook Integration**: Connect alerts to trading platforms via webhooks
3. **API Automation**: Use with brokers supporting TradingView integration (Zerodha, Upstox, Interactive Brokers, etc.)
4. **Signal Data Access**: All signals are plotted for external data retrieval
---
## 📖 Quick Start Guide
1. **Add Indicator**: Apply to your chart (works best on 1-5 minute timeframes)
2. **Configure Time Window**: Set your desired box formation period
3. **Adjust Parameters**: Tune confirmation bars, targets, and add-on settings to your trading style
4. **Set Alerts**: Create alert conditions for automated notifications
5. **Backtest**: Review historical signals to validate strategy performance
6. **Go Live**: Enable alerts and start receiving real-time trading signals
---
## ⚠️ Risk Disclaimer
This indicator is a **tool for analysis** and does not guarantee profits. Trading involves substantial risk of loss. Always:
- Use proper position sizing
- Implement stop losses (not included in this indicator)
- Test thoroughly before live trading
- Understand market conditions
- Never risk more than you can afford to lose
- Consider your risk tolerance and trading experience
**Past performance does not indicate future results.**
## 🔄 Version History
**v1.0** - Initial Release
- Dynamic box formation system
- Confirmed breakout signals
- Add-on position management
- Visual signal labels and statistics
- Comprehensive alert system
- Auto-adjusting target boxes
---
## 📞 Support & Feedback
If you find this indicator helpful:
- ⭐ Please leave a like/favorite
- 💬 Share your feedback in comments
- 📊 Share your results and improvements
- 🤝 Suggest features for future updates
---
## 🏷️ Tags
`breakout` `daytrading` `signals` `algo` `automated` `intraday` `ORB` `opening-range` `buy-sell` `scalping` `futures` `nifty` `banknifty` `algorithmic` `box-strategy`
*Remember: The best indicator is combined with proper risk management and trading discipline.* Use it at your own rist, not as financial advie
FibPulse144 [CHE]  FibPulse144   — ADX-gated 13/21 crossover with 144-trend regime and closed-bar labels 
  Summary 
FibPulse144 combines a fast moving-average crossover with a 144-period trend regime and an ADX strength gate. Signals are confirmed on closed bars only and drawn as labels on the price chart, while an ADX line in a separate pane provides context. Color gradients are derived from normalized ADX, so visual intensity reflects trend strength without changing the underlying logic. The approach reduces false flips during weak conditions and keeps entries aligned with the dominant trend.
  Motivation: Why this design? 
Traditional crossover signals can flip repeatedly during sideways phases and often trigger against the higher-time regime. By requiring alignment with a slower trend proxy and by gating entries through a rising ADX condition, FibPulse144 favors structurally cleaner transitions. Gradient coloring communicates strength visually, helping users temper aggressiveness without additional indicators.
  What’s different vs. standard approaches? 
 Baseline: Classic dual-MA crossover with unconditional signals.
 Architecture differences:
   Two-bar regime confirmation against a 144-period trend average.
   Pending-signal logic that waits for regime and optional ADX approval.
   ADX strength gate using the prior reading relative to a user threshold and earlier value.
   Gradient colors scaled by an ADX window with gamma controls.
   Price-chart labels enforced via overlay on an otherwise pane-based indicator.
 Practical effect: Fewer signals during weak or choppy conditions, labels that appear only after a bar closes, and color intensity that mirrors trend quality.
  How it works (technical) 
The script computes fast and slow moving averages using the selected method and lengths. A separate 144-length average defines the regime using a two-bar confirmation above or below it. Crossovers are observed on the previous bar to avoid intrabar ambiguity; once a prior crossover is detected, it is stored as pending. A pending long requires regime alignment and, if enabled, an ADX condition based on the previous reading being above the threshold and greater than an earlier reading. The state machine holds neutral, long, or short until an exit condition or ADX reset is met. ADX is normalized within a user window, scaled with gamma, and mapped to up and down color palettes to render gradients. Labels on the price panel are forced to overlay, while the ADX line and threshold guide remain in a separate pane.
  Parameter Guide 
 Source — Input data for all calculations. Default: close. Tip: keep consistent with your chart.
 MA Type — EMA or SMA. Default: EMA. EMA reacts faster; SMA is smoother.
 Fast / Slow — Fast and slow lengths for crossover. Defaults: 13 and 21. Shorter reacts earlier; longer reduces noise.
 Trend — Regime average length. Default: 144. Larger values stabilize regime; smaller values increase sensitivity.
 Use 144 as trend filter — Enables regime gating. Default: true. Disable to allow raw crossovers.
 Use ADX filter — Requires ADX strength. Default: true. Disable to allow signals regardless of strength.
 ADX Len — DI and ADX smoothing length. Default: 14. Higher values smooth strength; lower values react faster.
 ADX Thresh — Minimum strength for signals. Default: 25. Raise to reduce flips; lower to capture earlier moves.
 Entry/Exit labels (price) — Price-panel labels on state changes. Default: true.
 Signal labels in ADX pane — Small markers at the ADX value on entries. Default: true.
 Label size — tiny, small, normal, large. Default: normal.
 Enable barcolor — Optional candle tint by regime and gradient. Default: false.
 Enable gradient — Turns on ADX-driven color blending. Default: true.
 Window — Bars used to normalize ADX for colors. Default: 100; minimum: 5.
 Gamma bars / Gamma plots — Nonlinear scaling for bar and line intensities. Default: 0.80; between 0.30 and 2.00.
 Gradient transp (0–90) — Transparency for gradient colors. Default: 0.
 MA fill transparency (0–100) — Fill opacity between fast and slow lines. Default: 65.
 Palette colors (Up/Down) — Dark and neon endpoints for up and down gradients. Defaults as in the code.
  Reading & Interpretation 
 Fast/Slow lines: When the fast line is above the slow line, the line and fill use the long palette; when below, the short palette is used.
 Trend MA (144): Neutral gray line indicating the regime boundary.
 Labels on price: “LONG” appears when the state turns long; “SHORT” when it turns short. Labels appear only after the bar closes and conditions are satisfied.
 ADX pane: The ADX line shows current strength. The dotted threshold line is the user level for gating. Optional small markers indicate entries at the ADX value.
 Bar colors (optional): Candle tint intensity reflects normalized ADX. Higher intensity implies stronger conditions.
  Practical Workflows & Combinations 
 Trend following: Use long entries when fast crosses above slow and price has held above the trend average for two bars, with ADX above threshold. Mirror this for shorts below the trend average.
 Exits and stops: Consider reducing exposure when price closes on the opposite side of the trend average for two consecutive bars or when ADX fades below the threshold if the ADX filter is enabled.
 Structure confirmation: Combine with higher-timeframe structure such as swing highs and lows or a simple market structure overlay for confirmation.
 Multi-asset/Multi-TF: Works across liquid assets. For lower timeframes, consider a slightly lower ADX threshold; for higher timeframes, maintain or raise the threshold to avoid unnecessary flips.
  Behavior, Constraints & Performance 
 Repaint/confirmation: Signals are based on previous-bar crossovers and are confirmed on bar close. No higher-timeframe or security calls are used. Intrabar markers are not relied upon.
 Resources: The script declares `max_bars_back` of 2000, uses no loops or arrays, and employs persistent variables for pending signals and state.
 Known limits: Crossover systems can lag after sudden reversals. During tight ranges, disabling the ADX filter may increase flips; keeping it enabled may skip early transitions.
  Sensible Defaults & Quick Tuning 
 Starting point: EMA, 13/21/144, ADX length 14, ADX threshold 25, gradients on, barcolor off.
 Too many flips: Increase ADX threshold or length; increase trend length; consider SMA instead of EMA.
 Too sluggish: Lower ADX threshold slightly; shorten fast and slow lengths; reduce the trend length.
 Colors overpowering: Increase gradient transparency or reduce gamma values toward one.
  What this indicator is—and isn’t 
This is a visualization and signal layer that combines crossover, regime, and strength gating. It does not predict future movements, manage risk, or execute trades. Use it alongside clear structure, risk controls, and a defined position management plan.
  Disclaimer 
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
 Best regards and happy trading
Chervolino 
Quarter Strength Table (3M) [CHE]  Quarter Strength Table (3M) — quarterly seasonality overview for the current symbol 
 Is there seasonality in certain assets? Some YouTubers claim there is—can you test it yourself? 
  Summary 
This indicator builds a compact table that summarizes quarterly seasonality from three-month bars. It aggregates the simple return of each historical quarter, counts observations, computes the average return and the win rate for each quarter, and flags the historically strongest quarter. The output is a five-column table rendered on the chart, designed for quick comparison rather than signal generation. Because it processes only confirmed higher-timeframe bars, results are stable once a quarter has closed.
  Motivation: Why this design? 
Seasonality tools often mix intraperiod estimates with live bars, which can lead to misleading flips and inconsistent statistics. The core idea here is to restrict aggregation to completed three-month bars only and to deduplicate events by timestamp. This avoids partial information and double counting, so the table reflects a consistent, closed-bar history.
  What’s different vs. standard approaches? 
 Baseline: Typical seasonality studies that compute monthly or quarterly stats directly on the chart timeframe or update on live higher-timeframe bars.
 Architecture differences:
   Uses explicit higher-timeframe requests for open, close, time, and calendar month from three-month bars.
   Confirms the higher-timeframe bar before recording a sample; deduplicates by the higher-timeframe timestamp.
   Keeps fixed arrays of length four for the four quarters; renders a fixed five-by-five table with zebra rows.
 Practical effect: Once a quarter closes, counts and averages are stable. The “Best” column marks the highest average quarter so you can quickly identify the historically strongest period.
  How it works (technical) 
On every chart bar, the script requests three-month open, close, time, and the calendar month derived from that bar’s time. When the three-month bar is confirmed, it computes the simple return for that bar and maps the month to a quarter index between zero and three. A guard stores the last seen three-month timestamp to avoid duplicate writes. Per quarter, it accumulates the sum of returns, the number of samples, and the number of positive samples. From these, it derives average return and win rate. The table header is created once on the first bar; content updates only on the last visible chart bar for efficiency. No forward references are used, and lookahead is disabled in all higher-timeframe requests to avoid peeking.
  Parameter Guide 
 Percent — Formats values as percentages. Default: true. Trade-off: Easier visual comparison; disable if you prefer raw unit returns.
 Decimals — Number of digits shown. Default: two. Bounds: zero to six. Trade-off: More digits improve precision but reduce readability.
 Show table — Toggles table rendering. Default: true. Trade-off: Disable when space is limited or for batch testing.
  Reading & Interpretation 
The table shows rows for Q1 through Q4 and columns for Count, Avg Ret, P(win), and Best.
 Count: Number of completed three-month bars observed for that quarter.
 Avg Ret: Average simple return across all samples in that quarter.
 P(win): Share of samples with a positive return.
 Best: An asterisk marks the quarter with the highest average return among those with at least one sample.
  Use the combination of average and win rate to judge both magnitude and consistency. Low counts signal limited evidence.
  Practical Workflows & Combinations 
 Trend following filter: Favor setups when the upcoming or active quarter historically shows a positive average and a stable win rate. Combine with structure analysis such as higher highs and higher lows to avoid fighting dominant trends.
 Exits and risk: When entering during a historically weak quarter, consider tighter risk controls and quicker profit taking.
 Multi-asset and multi-timeframe: The default settings work across most liquid symbols. For assets with sparse history, treat results as low confidence due to small sample sizes.
  Behavior, Constraints & Performance 
 Repaint and confirmation: Aggregation occurs only when the three-month bar is confirmed; values do not change afterward for that bar. During an open quarter, no new sample is added.
 Higher-timeframe usage: All higher-timeframe requests disable lookahead and rely on confirmation to mitigate repaint.
 Resources: Declared `max_bars_back` is two thousand. Arrays are fixed at length four. The script updates the table only on the last visible bar to reduce work.
 Known limits: Averages can be affected by outliers and structural market changes. Limited history reduces reliability. Corporate actions and contract rolls may influence returns depending on the symbol’s data source. This is a visualization and not a trading system.
  Sensible Defaults & Quick Tuning 
 Starting values: Percent true; Decimals two; Show table true.
 If numbers feel noisy: Decrease decimals to one to reduce visual clutter.
 If you need raw values: Turn off Percent to display unit returns.
 If the table overlaps price: Toggle Show table off when annotating, or reposition via your chart’s table controls.
  What this indicator is—and isn’t 
This is a historical summary of quarterly behavior. It visualizes evidence and helps frame expectations. It is not predictive, does not generate trade signals, and does not manage positions or risk. Always combine with market structure, liquidity considerations, and independent risk controls.
 Inputs with defaults 
 Percent: true, boolean.
 Decimals: two, integer between zero and six.
 Show table: true, boolean.
Pine version: v6
Overlay: true
Primary outputs: Table with five columns and five rows.
Metrics/functions used: Higher-timeframe data requests, table rendering, arrays, bar state checks, month mapping.
Special techniques: Closed-bar aggregation, deduplication by higher-timeframe timestamp, zebra row styling.
Performance/constraints: Two thousand bars back, small fixed loops, higher-timeframe requests without lookahead.
Compatibility/assets/timeframes: Works on time-based charts across most assets with sufficient history.
Limitations/risks: Sample size sensitivity, regime shifts, data differences across venues.
Debug/diagnostics: (Unknown/Optional)
 Disclaimer 
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
 Chervolino 
Contrarian Period High & LowContrarian Period High & Low
This indicator pairs nicely with the Contrarian 100 MA and can be located here:
Overview
The "Contrarian Period High & Low" indicator is a powerful technical analysis tool designed for traders seeking to identify key support and resistance levels and capitalize on contrarian trading opportunities. By tracking the highest highs and lowest lows over user-defined periods (Daily, Weekly, or Monthly), this indicator plots historical levels and generates buy and sell signals when price breaks these levels in a contrarian manner. A unique blue dot counter and action table enhance decision-making, making it ideal for swing traders, trend followers, and those trading forex, stocks, or cryptocurrencies. Optimized for daily charts, it can be adapted to other timeframes with proper testing.
How It Works
The indicator identifies the highest high and lowest low within a specified period (e.g., daily, weekly, or monthly) and draws horizontal lines for the previous period’s extremes on the chart. These levels act as dynamic support and resistance zones. Contrarian signals are generated when the price crosses below the previous period’s low (buy signal) or above the previous period’s high (sell signal), indicating potential reversals. A blue dot counter tracks consecutive buy signals, and a table displays the count and recommended action, helping traders decide whether to hold or flip positions.
Key Components
Period High/Low Levels: Tracks the highest high and lowest low for each period, plotting red lines for highs and green lines for lows from the bar where they occurred, extending for a user-defined length (default: 200 bars).
Contrarian Signals: Generates buy signals (blue circles) when price crosses below the previous period’s low and sell signals (white circles) when price crosses above the previous period’s high, designed to capture potential reversals.
Blue Dot Tracker: Counts consecutive buy signals (“blue dots”). If three or more occur, it suggests a stronger trend, with the table recommending whether to “Hold Investment” or “Flip Investment.”
Action Table: A 2x2 table in the bottom-right corner displays the blue dot count and action (“Hold Investment” if count ≥ 4, else “Flip Investment”) for quick reference.
Mathematical Concepts
Period Detection: Uses an approximate bar count to define periods (1 bar for Daily, 5 bars for Weekly, 20 bars for Monthly on a daily chart). When a new period starts, the previous period’s high/low is finalized and plotted.
High/Low Tracking:
Highest high (periodHigh) and lowest low (periodLow) are updated within the period.
Lines are drawn at these levels when the period ends, starting from the bar where the extreme occurred (periodHighBar, periodLowBar).
Signal Logic:
Buy signal: ta.crossunder(close , prevPeriodLow) and not lowBroken and barstate.isconfirmed
Sell signal: ta.crossover(close , prevPeriodHigh) and not highBroken and barstate.isconfirmed
Flags (highBroken, lowBroken) prevent multiple signals for the same level within a period.
Blue Dot Counter: Increments on each buy signal, resets on a sell signal or if price exceeds the entry price after three or more buy signals.
Entry and Exit Rules
Buy Signal (Blue Circle): Triggered when the price crosses below the previous period’s low, suggesting a potential oversold condition and buying opportunity. The signal appears as a blue circle below the price bar.
Sell Signal (White Circle): Triggered when the price crosses above the previous period’s high, indicating a potential overbought condition and selling opportunity. The signal appears as a white circle above the price bar.
Blue Dot Tracker:
Increments blueDotCount on each buy signal and sets an entryPrice on the first buy.
Resets on a sell signal or if price exceeds entryPrice after three or more buy signals.
If blueDotCount >= 3, the table suggests holding; if >= 4, it reinforces “Hold Investment.”
Exit Rules: Exit a buy position on a sell signal or when price exceeds the entry price after three or more buy signals. Combine with other tools (e.g., trendlines, support/resistance) for additional confirmation. Always apply proper risk management.
Recommended Usage
The "Contrarian Period High & Low" indicator is optimized for daily charts but can be adapted to other timeframes (e.g., 1H, 4H) with adjustments to the period bar count. It excels in markets with clear support/resistance levels and potential reversal zones. Traders should:
Backtest the indicator on their chosen asset and timeframe to validate signal reliability.
Combine with other technical tools (e.g., moving averages, Fibonacci levels) for stronger trade confirmation.
Adjust barsPerPeriod (e.g., ~120 bars for Weekly on hourly charts) based on the chart timeframe and market volatility.
Monitor the action table to guide position management based on blue dot counts.
Customization Options
Period Type: Choose between Daily, Weekly, or Monthly periods (default: Monthly).
Line Length: Set the length of high/low lines in bars (default: 200).
Show Highs/Lows: Toggle visibility of period high (red) and low (green) lines.
Max Lines to Keep: Limit the number of historical lines displayed (default: 10).
Hide Signals: Toggle buy/sell signal visibility for a cleaner chart.
Table Display: A fixed table in the bottom-right corner shows the blue dot count and action, with yellow (Hold) or green (Flip) backgrounds based on the count.
Why Use This Indicator?
The "Contrarian Period High & Low" indicator offers a unique blend of support/resistance visualization and contrarian signal generation, making it a versatile tool for identifying potential reversals. Its clear visual cues (lines and signals), blue dot tracker, and actionable table provide traders with an intuitive way to monitor market structure and manage trades. Whether you’re a beginner or an experienced trader, this indicator enhances your ability to spot key levels and time entries/exits effectively.
Tips for Users
Test the indicator thoroughly on your chosen market and timeframe to optimize settings (e.g., adjust barsPerPeriod for non-daily charts).
Use in conjunction with price action or other indicators for stronger trade setups.
Monitor the action table to decide whether to hold or flip positions based on blue dot counts.
Ensure your chart timeframe aligns with the selected period type (e.g., daily chart for Monthly periods).
Apply strict risk management to protect against false breakouts.
Happy trading with the Contrarian Period High & Low indicator! Share your feedback and strategies in the TradingView community!
Multi-Timeframe Sweep IndicatorsLiquidity Sweeps: Identify when price sweeps stops above/below key levels
Breakout Confirmation: Confirm breakouts across multiple timeframes
Entry Timing: Use lower timeframe sweeps for precise entries
Risk Management: Higher timeframe sweeps may indicate stronger moves
The indicator works best when combined with other analysis techniques like support/resistance levels, volume analysis, and market structure.
Higher High Lower Low Multi-TF📊 Higher High Lower Low Multi-Timeframe Indicator
Detects market structure shifts (HH, HL, LH, LL)
Identifies trend direction (bullish / bearish / neutral)
Works across multiple timeframes (M5 to Weekly)
Displays a compact trend summary table on the chart
Customizable pivot sensitivity (Left/Right Bars)
Visual labels on chart for structure points
Ideal for structure-based trading and SMC traders
Algorithmic Value Oscillator [CRYPTIK1]Algorithmic Value Oscillator  
 Introduction: What is the AVO?  Welcome to the Algorithmic Value Oscillator (AVO), a powerful, modern momentum indicator that reframes the classic "overbought" and "oversold" concept. Instead of relying on a fixed lookback period like a standard RSI, the AVO measures the current price relative to a significant, higher-timeframe  Value Zone .
This gives you a more contextual and structural understanding of price. The core question it answers is not just "Is the price moving up or down quickly?" but rather, " Where is the current price in relation to its recently established area of value? "
This allows traders to identify true "premium" (overbought) and "discount" (oversold) levels with greater accuracy, all presented with a clean, futuristic aesthetic designed for the modern trader.
 The Core Concept: Price vs. Value  The market is constantly trying to find equilibrium. The AVO is built on the principle that the high and low of a significant prior period (like the previous day or week) create a powerful area of perceived value. 
 The Value Zone:  The range between the high and low of the selected higher timeframe. 
 Premium Territory (Distribution Zone):  When the oscillator moves into the glowing pink/purple zone above +100, it is trading at a premium.
 Discount Territory (Accumulation Zone):  When the oscillator moves into the glowing teal/blue zone below -100, it is trading at a discount.  
 Key Features 
 1. Glowing Gradient Oscillator:  The main oscillator line is a dynamic visual guide to momentum. 
 The line changes color smoothly from  light blue to neon teal  as bullish momentum increases. 
 It shifts from  hot pink to bright purple  as bearish momentum increases. 
 Multiple transparent layers create a professional "glow" effect, making the trend easy to see at a glance.   
 2. Dynamic Volatility Histogram:  This histogram at the bottom of the indicator is a custom volatility meter. It has been engineered to be adaptive, ensuring that the visual differences between high and low volatility are always clear and dramatic, no matter your zoom level. It uses a multi-color gradient to visualize the intensity of market volatility.
 3. Volatility Regime Dashboard:  This simple on-screen table analyzes the histogram and provides a clear, one-word summary of the current market state: Compressing, Stable, or Expanding.
 How to Use the AVO: Trading Strategies 
 1. Reversion Trading  This is the most direct way to use the indicator. 
 Look for Buys:  When the AVO line drops into the teal "Accumulation Zone" (below -100), the price is trading at a discount. Watch for the oscillator to form a bottom and start turning up as a signal that buying pressure is returning.
 Look for Sells:  When the AVO line moves into the pink "Distribution Zone" (above +100), the price is trading at a premium. Watch for the oscillator to form a peak and start turning down as a signal that selling pressure is increasing.  
 2. Best Practices & Settings  
 Timeframe Synergy:  The AVO is most effective when your chart timeframe is lower than your selected "Value Zone Source." For example, if you trade on the 1-hour chart, set your Value Zone to "Previous Day."
 Confirmation is Key:  This indicator provides powerful context, but it should not be used in isolation. Always combine its readings with your primary analysis, such as market structure and support/resistance levels. 
Options Max Pain Calculator [BackQuant]Options Max Pain Calculator  
A visualization tool that models option expiry dynamics by calculating "max pain" levels, displaying synthetic open interest curves, gamma exposure profiles, and pin-risk zones to help identify where market makers have the least payout exposure.
 What is Max Pain? 
Max Pain is the theoretical expiration price where the total dollar value of outstanding options would be minimized. At this price level, option holders collectively experience maximum losses while option writers (typically market makers) have minimal payout obligations. This creates a natural gravitational pull as expiration approaches.
 Core Features 
 Visual Analysis Components: 
 
 Max Pain Line: Horizontal line showing the calculated minimum pain level
 Strike Level Grid: Major support and resistance levels at key option strikes  
 Pin Zone: Highlighted area around max pain where price may gravitate
 Pain Heatmap: Color-coded visualization showing pain distribution across prices
 Gamma Exposure Profile: Bar chart displaying net gamma at each strike level
 Real-time Dashboard: Summary statistics and risk metrics
 
 Synthetic Market Modeling** 
Since Pine Script cannot access live options data, the indicator creates realistic synthetic open interest distributions based on configurable market parameters including volume patterns, put/call ratios, and market maker positioning.
 How It Works 
 Strike Generation: 
The tool creates a grid of option strikes centered around the current price. You can control the range, density, and whether strikes snap to realistic market increments.
 Open Interest Modeling: 
Using your inputs for average volume, put/call ratios, and market maker behavior, the indicator generates synthetic open interest that mirrors real market dynamics:
 
 Higher volume at-the-money with decay as strikes move further out
 Adjustable put/call bias to reflect current market sentiment  
 Market maker inventory effects and typical short-gamma positioning
 Weekly options boost for near-term expirations
 
 Pain Calculation: 
For each potential expiry price, the tool calculates total option payouts:
 
 Call options contribute pain when finishing in-the-money
 Put options contribute pain when finishing in-the-money
 The strike with minimum total pain becomes the Max Pain level
 
 Gamma Analysis: 
Net gamma exposure is calculated at each strike using standard option pricing models, showing where hedging flows may be most intense. Positive gamma creates price support while negative gamma can amplify moves.
 Key Settings 
 Basic Configuration: 
 
 Number of Strikes: Controls grid density (recommended: 15-25)
 Days to Expiration: Time until option expiry
 Strike Range: Price range around current level (recommended: 8-15%)
 Strike Increment: Spacing between strikes
 
 Market Parameters: 
 
 Average Daily Volume: Baseline for synthetic open interest
 Put/Call Volume Ratio: Market sentiment bias (>1.0 = bearish, <1.0 = bullish)  It does not work if set to 1.0
 Implied Volatility: Current option volatility estimate
 Market Maker Factors: Dealer positioning and hedging intensity
 
 Display Options: 
 
 Model Complexity: Simple (line only), Standard (+ zones), Advanced (+ heatmap/gamma)
 Visual Elements: Toggle individual components on/off
 Theme: Dark/Light mode
 Update Frequency: Real-time or daily calculation
 
 Reading the Display 
 Dashboard Table (Top Right): 
 
 Current Price vs Max Pain Level
 Distance to Pain: Percentage gap (smaller = higher pin risk)
 Pin Risk Assessment: HIGH/MEDIUM/LOW based on proximity and time
 Days to Expiry and Strike Count
 Model complexity level
 
 Visual Elements: 
 
 Red Line: Max Pain level where payout is minimized
 Colored Zone: Pin risk area around max pain
 Dotted Lines: Major strike levels (green = support, orange = resistance)
 Color Bar: Pain heatmap (blue = high pain, red = low pain/max pain zones)
 Horizontal Bars: Gamma exposure (green = positive, red = negative)
 Yellow Dotted Line: Gamma flip level where hedging behavior changes
 
 Trading Applications 
 Expiration Pinning: 
When price is near max pain with limited time remaining, there's increased probability of gravitating toward that level as market makers hedge their positions.
 Support and Resistance: 
High open interest strikes often act as magnets, with max pain representing the strongest gravitational pull.
 Volatility Expectations: 
 
 Above gamma flip: Expect dampened volatility (long gamma environment)  
 Below gamma flip: Expect amplified moves (short gamma environment)
 
 Risk Assessment: 
The pin risk indicator helps gauge likelihood of price manipulation near expiry, with HIGH risk suggesting potential range-bound action.
 Best Practices 
 Setup Recommendations 
 
 Start with Model Complexity set to "Standard"
 Use realistic strike ranges (8-12% for most assets)  
 Set put/call ratio based on current market sentiment
 Adjust implied volatility to match current levels
 
 Interpretation Guidelines: 
 
 Small distance to pain + short time = high pin probability
 Large gamma bars indicate key hedging levels to monitor
 Heatmap intensity shows strength of pain concentration
 Multiple nearby strikes can create wider pin zones
 
 Update Strategy: 
 
 Use "Daily" updates for cleaner visuals during trading hours
 Switch to "Every Bar" for real-time analysis near expiration
 Monitor changes in max pain level as new options activity emerges
 
 Important Disclaimers 
 
 This is a modeling tool using synthetic data, not live market information. While the calculations are mathematically sound and the modeling realistic, actual market dynamics involve numerous factors not captured in any single indicator.
 Max pain represents theoretical minimum payout levels and suggests where natural market forces may create gravitational pull, but it does not guarantee price movement or predict exact expiration levels. Market gaps, news events, and changing volatility can override these dynamics.
 Use this tool as additional context for your analysis, not as a standalone trading signal. The synthetic nature of the data makes it most valuable for understanding market structure and potential zones of interest rather than precise price prediction.
 
 Technical Notes 
The indicator uses established option pricing principles with simplified implementations optimized for Pine Script performance. Gamma calculations use standard financial models while pain calculations follow the industry-standard definition of minimized option payouts.
All visual elements use fixed positioning to prevent movement when scrolling charts, and the tool includes performance optimizations to handle real-time calculation without timeout errors.
AVGO Advanced Day Trading Strategy📈 Overview
The AVGO Advanced Day Trading Strategy is a comprehensive, multi-timeframe trading system designed for active day traders seeking consistent performance with robust risk management. Originally optimized for AVGO (Broadcom), this strategy adapts well to other liquid stocks and can be customized for various trading styles.
🎯 Key Features
Multiple Entry Methods
 
 EMA Crossover: Classic trend-following signals using fast (9) and medium (16) EMAs
 MACD + RSI Confluence: Momentum-based entries combining MACD crossovers with RSI positioning
 Price Momentum: Consecutive price action patterns with EMA and RSI confirmation
 Hybrid System: Advanced multi-trigger approach combining all methodologies
 
Advanced Technical Arsenal
When enabled, the strategy analyzes 8+ additional indicators for confluence:
 
 Volume Price Trend (VPT): Measures volume-weighted price momentum
 On-Balance Volume (OBV): Tracks cumulative volume flow
 Accumulation/Distribution Line: Identifies institutional money flow
 Williams %R: Momentum oscillator for entry timing
 Rate of Change Suite: Multi-timeframe momentum analysis (5, 14, 18 periods)
 Commodity Channel Index (CCI): Cyclical turning points
 Average Directional Index (ADX): Trend strength measurement
 Parabolic SAR: Dynamic support/resistance levels
 
🛡️ Risk Management System
Position Sizing
 
 Risk-based position sizing (default 1% per trade)
 Maximum position limits (default 25% of equity)
 Daily loss limits with automatic position closure
 
Multiple Profit Targets
 
 Target 1: 1.5% gain (50% position exit)
 Target 2: 2.5% gain (30% position exit)
 Target 3: 3.6% gain (20% position exit)
 Configurable exit percentages and target levels
 
 
Stop Loss Protection
 
 ATR-based or percentage-based stop losses
 Optional trailing stops
 Dynamic stop adjustment based on market volatility
 
📊 Technical Specifications
Primary Indicators
 
 EMAs: 9 (Fast), 16 (Medium), 50 (Long)
 VWAP: Volume-weighted average price filter
 RSI: 6-period momentum oscillator
 MACD: 8/13/5 configuration for faster signals
 
Volume Confirmation
 
 Volume filter requiring 1.6x average volume
 19-period volume moving average baseline
 Optional volume confirmation bypass
 
Market Structure Analysis
 
 Bollinger Bands (20-period, 2.0 multiplier)
 Squeeze detection for breakout opportunities
 Fractal and pivot point analysis
 
⏰ Trading Hours & Filters
Time Management
 
 Configurable trading hours (default: 9:30 AM - 3:30 PM EST)
 Weekend and holiday filtering
 Session-based trade management
 
Market Condition Filters
 
 Trend alignment requirements
 VWAP positioning filters
 Volatility-based entry conditions
 
📱 Visual Features
Information Dashboard
Real-time display of:
 
 Current entry method and signals
 Bullish/bearish signal counts
 RSI and MACD status
 Trend direction and strength
 Position status and P&L
 Volume and time filter status
 
Chart Visualization
 
 EMA plots with customizable colors
 Entry signal markers
 Target and stop level lines
 Background color coding for trends
 Optional Bollinger Bands and SAR display
 
 
🔔 Alert System
Entry Alerts
 
 Customizable alerts for long and short entries
 Method-specific alert messages
 Signal confluence notifications
 
 
Advanced Alerts
 
 Strong confluence threshold alerts
 Custom alert messages with signal counts
 Risk management alerts
 
⚙️ Customization Options
Strategy Parameters
 
 Enable/disable long or short trades
 Adjustable risk parameters
 Multiple entry method selection
 Advanced indicator on/off toggle
 
Visual Customization
 
 
 Color schemes for all indicators
 Dashboard position and size options
 Show/hide various chart elements
 Background color preferences
 
📋 Default Settings
 
 Initial Capital: $100,000
 Commission: 0.1%
 Default Position Size: 10% of equity
 Risk Per Trade: 1.0%
 RSI Length: 6 periods
 MACD: 8/13/5 configuration
 Stop Loss: 1.1% or ATR-based
 
🎯 Best Use Cases
 
 Day Trading: Designed for intraday opportunities
 Swing Trading: Adaptable for longer-term positions
 Momentum Trading: Excellent for trending markets
 Risk-Conscious Trading: Built-in risk management protocols
 
⚠️ Important Notes
 
 Paper Trading Recommended: Test thoroughly before live trading
 Market Conditions: Performance varies with market volatility
 Customization: Adjust parameters based on your risk tolerance
 Educational Purpose: Use as a learning tool and customize for your needs
 
🏆 Performance Features
 
 Detailed performance metrics
 Trade-by-trade analysis capability
 Customizable risk/reward ratios
 Comprehensive backtesting support
 
This strategy is for educational purposes. Past performance does not guarantee future results. Always practice proper risk management and consider your financial situation before trading.
Price Level Highlighter [ldlwtrades]This indicator is a minimalist and highly effective tool designed for traders who incorporate institutional concepts into their analysis. It automates the identification of key psychological price levels and adds a unique, dynamic layer of information to help you focus on the most relevant area of the market. Inspired by core principles of market structure and liquidity, it serves as a powerful visual guide for anticipating potential support and resistance. 
The core idea is simple: specific price points, particularly those ending in round numbers or common increments, often act as magnets or barriers for price. While many indicators simply plot static lines, this tool goes further by intelligently highlighting the single most significant level in real-time. This dynamic feature allows you to quickly pinpoint where the market is currently engaged, offering a clear reference point for your trading decisions. It reduces chart clutter and enhances your focus on the immediate price action.
 Features 
 Customizable Price Range:  Easily define a specific Start Price and End Price to focus the indicator on the most relevant area of your chart, preventing unnecessary clutter.
 Adjustable Increment:  Change the interval of the lines to suit your trading style, from high-frequency increments (e.g., 10 points) for scalping to wider intervals (e.g., 50 or 100 points) for swing trading.
 Intelligent Highlighting:  A key feature that automatically identifies and highlights the single horizontal line closest to the current market price with a distinct color and thickness. This gives you an immediate visual cue for the most relevant price level.
 Highly Customizabile:  Adjust the line color, style, and width for both the main lines and the highlighted line to fit your personal chart aesthetic.
 Usage 
 
 Apply the indicator to your chart.
 In the settings, input your desired price range (Start Price and End Price) to match the market you are trading.
 Set the Price Increment to your preferred density.
 Monitor the chart for the highlighted line. This is your active price level and a key area of interest.
 Combine this tool with other confirmation signals (e.g., order blocks, fair value gaps, liquidity pools) to build higher-probability trade setups.
 
 Best Practices 
 Pairing:  This tool is effective across all markets, including stocks, forex, indices, and crypto. It is particularly useful for volatile markets where price moves rapidly between psychological levels.
 Mindful Analysis:   Use the highlighted level as a reference point for your analysis, not as a standalone signal. A break above or below this level can signify a shift in market control.
 Backtesting:  Always backtest the indicator on your preferred market and timeframe to understand how it performs under different conditions.
OTFThis indicator identifies One Time Framing conditions directly on the chart. One Time Framing occurs when a bar’s high is higher than the previous bar’s high without breaking the previous low (for bullish OTF), or when a bar’s low is lower than the previous bar’s low without breaking the previous high (for bearish OTF).
This tool helps traders to spot continuation moves and trend confirmation within any timeframe. Customizable inputs allow users to select the desired time interval and highlight both bullish and bearish One Time Framing sequences.
How to use:
Apply this indicator on any timeframe to automatically highlight OTF events.
Use the visual markers to identify trend continuations or early reversals.
Adjust the settings panel for color preferences and OTF sensitivity.
No trading signals or strategies are provided; this indicator is strictly for identifying the OTF structure in market price action. Suitable for all levels of traders interested in market structure analysis.
Dynamic EMA Stack Support & ResistanceEvery trader needs reliable support and resistance — but static zones and lagging indicators won't cut it in fast-moving markets. This script combines a Fibonacci-based 5-EMA stacking system and left/right pivots that create dynamic support & resistance logic to uncover real-time structural shifts & momentum zones that actually adapt to price action. This isn’t just a mashup — it’s a complete built-from-the-ground-up support & resistance engine designed for scalpers, intraday traders, and trend followers alike.
🧠 🧠 🧠What It Does🧠 🧠 🧠
This script uses two powerful engines working in sync:
1️⃣ EMA Stack (5-EMA Framework)
Built on Fibonacci-based lengths: 5, 8, 13, 21, 34, (configurable) this stack identifies:
🔹 Bullish Stack: EMAs aligned from fastest to slowest (uptrend confirmation)
🔹 Bearish Stack: EMAs aligned inversely (downtrend confirmation)
🟡 Narrowing Zones: When EMAs compress within ATR thresholds → possible breakout or reversal zone
🎯 Labels identify key transitions like:
✅"Begin Bear Trend?"
✅"Uptrend SPRT"
✅"RES?" (resistance test)
2️⃣ Pivot-Based Projection Engine
Using classic Left/Right Bar pivot logic, the script:
📌 Detects early-stage swing highs/lows before full confirmation
📈 Projects horizontal S/R lines that adapt to market structure
🔁 Keeps lines active until a new pivot replaces them
🧩 Syncs beautifully with EMA stack for confluence zones
🎯🎯🎯Key Features for Traders🎯🎯🎯
✅ Trend Detection
→ EMA order reveals real-time bias (bullish, bearish, compression)
✅ Dynamic S/R Zones
→ Historical support/resistance levels auto-draw and extend
✅ Smart Labeling
→ “SPRT”, “RES”, and “Trend?” labels for live context + testing logic
✅ Custom Candle Coloring
→ Choose from Bar Color or Full Candle Overlay modes
✅ Scalper & Swing Compatible
→ Use fast confirmations for scalping or stack consistency for longer trends
⚙️⚙️⚙️How to Use⚙️⚙️⚙️
✅Use Top/Bottom (trend state) Line Colors to quickly read trend conditions.
✅Use Pivot-based support/resistance projections to anticipate where price might pause or reverse.
✅Watch for yellow/blue zones to prepare for volatility shifts/reversals.
✅Combine with volume or momentum indicators for added confirmation.
📐📐📐Customization Options📐📐📐
✅EMA lengths (5, 8, 13, 21, 34) — fully configurable - try 21,34,55, 89, 144 for longer term trend states
✅Left/Right bar pivot settings (default: 21/5)
✅Label size, visibility, and color themes
✅Toggle line and label visibility for clean layouts
✅“Max Bars Back” to control how deep history is scanned safely
🛠🛠🛠Built-In Safeguards🛠🛠🛠
✅ATR-based filters to stabilize compression logic
✅Guarded lookback (max_bars_back) to avoid runtime errors
✅Works on any asset, any timeframe
🏁🏁🏁Final Word🏁🏁🏁
This script is not just a visual tool, it’s a complete trend and structure framework. Whether you're looking for clean trend alignment, dynamic support/resistance, or early warning labels, this system is tuned to help you react with confidence — not hindsight.
Rembember, no single indicator should be used in isolation. For best results, combine it with price action analysis, higher-timeframe context, and complementary tools like trendlines, moving averages etc Use it as part of a well-rounded trading approach to confirm setups — not to define them alone.
💡💡💡Turn logic into clarity. Structure into trades. And uncertainty into confidence.💡💡💡
Daily/Weekly Wick (Shadow) Range📈 Detailed Guide to the Daily/Weekly Wick (Shadow) Range Indicator
This indicator is a powerful visualization tool designed to map the key price levels established during the previous trading period (either the previous day or the previous week). Instead of just showing a single line for the high and low, it highlights the entire range of the upper and lower wicks (shadows), representing the "battleground" where buyers and sellers were most active.
How It Works
The Wick (Shadow) Range indicator fetches the Open, High, Low, and Close data from the last completed daily or weekly candle and projects those levels onto your current chart. This creates two distinct colored zones.
Upper Wick (Green Zone): This area spans from the Previous High down to the top of the Previous Candle's Body. It visually represents the territory where sellers successfully pushed the price down from its peak. This entire zone can be considered a resistance area.
Lower Wick (Red Zone): This area spans from the bottom of the Previous Candle's Body down to the Previous Low. It shows where buyers stepped in to defend a price level and push it back up. This entire zone can be considered a support area.
How to Use It in Your Trading
This indicator isn't meant to give direct buy or sell signals on its own. Instead, it provides crucial context about market structure. Here are several ways to incorporate it into your strategy:
1. Identifying Key Support & Resistance
This is the indicator's primary function. The most significant levels are:
Key Resistance: The top edge of the green zone (the previous period's high).
Key Support: The bottom edge of the red zone (the previous period's low).
Look for the current price to react when it approaches these boundaries. These are high-probability areas for price to pause or reverse.
2. Watching for Price Rejection (Reversal Trading)
The colored zones are perfect for spotting rejection signals.
Bearish Rejection 📉: If the current price enters the green zone but fails to stay there, closing back below it (often forming a new wick), it's a strong sign that sellers are still in control at that level. This can be an excellent entry signal for a short position.
Bullish Rejection 📈: If the current price dips into the red zone and is quickly bought back up, it shows that buyers are actively defending that area. This can be a great entry signal for a long position.
3. Confirming Breakouts (Trend Trading)
The zones also help validate breakouts.
Bullish Breakout: If the price pushes decisively through the entire green zone and closes above the previous high, it signals that the previous resistance has been broken and the trend may continue upward.
Bearish Breakdown: If the price falls decisively through the entire red zone and closes below the previous low, it confirms that support has failed and the price may continue downward.
4. Setting Context with Timeframes
Weekly Setting: Use the "Weekly" option to identify major, significant support and resistance levels that can influence the market for the entire week. These are powerful levels for swing trading.
Daily Setting: Use the "Daily" option for intraday trading. The previous day's high and low are critical pivot points that many day traders watch.
⚙️ Indicator Settings
The indicator has one simple setting, which you can access by clicking the gear icon ⚙️ next to its name on the chart.
Select Wick Timeframe: This dropdown menu allows you to switch the indicator's calculation between the Daily and Weekly timeframe instantly.
Dual-Frame Momentum OscillatorDual-Frame Momentum Oscillator (DFMO)
This is not just another oscillator. This is a confluence engine, built for the discerning trader who reads the story of price action and needs an objective tool to confirm the climax.
The Dual-Frame Momentum Oscillator was designed to solve a specific problem: how to differentiate a genuine, sustainable breakout from an exhaustive liquidity grab. It provides a visual confirmation for high-probability reversal and scalp setups by measuring momentum across two distinct time frames simultaneously.
This tool is for the trader who understands that indicators should not dictate trades, but rather confirm a well-defined thesis based on market structure, volume, and liquidity.
The Core Concept: Context Meets Trigger
The DFMO fuses a slow, methodical Stochastic with a hyper-sensitive RSI to give you a complete picture of momentum.
The Context (Slow Stochastic %K - default 40,4,4): This acts as your long-term momentum gauge. It tells you if the underlying trend is healthy or nearing exhaustion. A high reading suggests the market is overextended and vulnerable, while a low reading suggests the opposite.
The Trigger (Fast RSI - default 3): This is your immediate impulse reader. It measures the velocity and intensity of the current price thrust, making it incredibly sensitive to exhaustive moves, spikes, and bounces.
By themselves, they are useful. Together, they are formidable.
The Confluence Engine: Your Visual Edge
The true power of the DFMO lies in its "Confluence Engine." The indicator's background highlights in real-time when both oscillators are in agreement, visually flagging moments of maximum opportunity.
Bearish Confluence Zone (Red): The background turns red only when the Stochastic is overbought AND the RSI is overbought. This is your signal that the broader trend is exhausted and the current buying impulse has reached a climax. It is the ideal confirmation for a short entry following a liquidity sweep above a key high.
Bullish Confluence Zone (Green): The background turns green only when the Stochastic is oversold AND the RSI is oversold. This signals that the downtrend is tired and the immediate selling pressure is exhaustive, providing high-probability confirmation for a long entry at a key support level.
When these zones appear, the indicator is telling you that both the context and the trigger are aligned. This removes ambiguity and allows for decisive, confident execution.
Practical Application: The Liquidity Sweep
Imagine you're stalking a short on a futures contract like MCL or MES. You've marked the high of the day (HOD) as a key resistance level where liquidity is resting. You see a sharp, vertical impulse move that breaks the HOD, clearing out the stops.
Is this a real breakout, or is it a manipulation move—a classic liquidity grab?
You glance down at the DFMO. The moment price swept the high, the background flashed red. That's your objective confirmation. The slow Stoch was already overbought, and the fast RSI spiking confirmed the exhaustive, terminal nature of that price thrust. You now have the confidence to enter your short scalp, knowing you are aligned with the probable direction of the market's next move.
This is how you move from "feeling" the market to systematically executing a high-probability edge. This is how you aspire for greatness.
Add the Dual-Frame Momentum Oscillator to your toolkit and transform your ability to time entries with surgical precision.
Market Dynamics Engine (Revention)// |   An All-in-One Market Analysis Suite                              |
// |                                                                    |
// | This script provides a holistic view of the market by unifying a   |
// | dynamic trend engine, an advanced market structure analysis module,|
// | and a multi-oscillator confluence system for identifying          |
// | potential exhaustion points.                                       |
// |                                                                    |
// | This professional-grade tool features an adaptive trend ribbon,    |
// | predictive liquidity targets, and high-probability POI confluence |
// | markers for a complete analytical experience.
ICT 00:00, 08:30, 09:30 & 13:30 Opens (NY) — Prior-Day HistoryICT 00:00, 08:30, 09:30 & 13:30 Opens (NY)
This is a derivative of ALPHAICTRADER’s open-source script, republished under the MPL-2.0 with clear attribution and documented changes. It plots four New-York–anchored intraday reference levels—0000, 0830, 0930, 1330—as short, right-padded stubs with clean side labels. Use these time anchors (ICT-style midnight + key US windows) to frame bias, volatility pockets, and intraday trade locations.
What’s original in this version (changes)
Right-padded stubs instead of chart-wide rays — each level ends N bars past the latest candle (configurable).
Side labels at the line tip — text-only labels (0000, 0830, 0930, 1330) that sit at the right end of each stub and update every bar.
Optional prior-day history — show Today only or Today + Prior Day; older lines/labels auto-pruned.
Per-anchor controls — Display, Style, Color, Width, and Show Label for each time.
What it plots (and why)
0000 (NY Midnight): daily session anchor for bias/liquidity context.
0830 (NY): macro data window (CPI/NFP/claims) where volatility often concentrates.
0930 (NY): US cash equity market open; opening-drive structure/acceptance tests.
1330 (NY): early-afternoon anchor for continuation vs. fade.
How it works (under the hood)
Session detection: time("1", session, "America/New_York"); first bar flagged via not na(ts) and na(ts ).
Anchor price: open of that first bar per session/day.
Rendering: lines drawn with xloc=bar_index from start bar to bar_index + Right Pad; x2 updates every bar (no extend.right).
Labels: placed at line.get_x2(line) + Label Pad, soft color variant; updated per bar to stay on the tip.
History: arrays keep either today only or today + yesterday and delete anything older immediately.
How to use
Add to any intraday chart (futures/FX/indices). Anchors are always NY-time; TradingView handles DST.
Inputs
00:00 / 08:30 / 09:30 / 13:30 (NY): Display, Line Style, Color, Width, Show Label
Right Edge: Right Pad (bars) · Label Pad (bars)
History: Show Prior Day (History) — off = today only; on = today + yesterday
Suggested pads: Right Pad 2–5 bars; Label Pad 0–2.
These are context anchors, not signals. Combine with your execution model (market structure, liquidity, FVG/OBs, etc.).
Attribution & License (MPL-2.0)
Original work: “ICT NEW YORK MIDNIGHT OPEN AND 8.30 AM OPEN” by ALPHAICTRADER (MPL-2.0).
This derivative: modifications listed above; source published and kept under MPL-2.0 per license terms.
If you distribute a modified version of this Pine file, you must keep MPL-2.0, retain the copyright/licensing header, publish your modified source, and document your changes.
Notes: Pine v5. Minimalist (no day dividers). Educational tool; not financial advice.
Copyright: © ALPHAICTRADER 2022 · © Funk 2025
License: MPL-2.0
TAUtilityLibLibrary   "TAUtilityLib" 
Technical Analysis Utility Library - Collection of functions for market analysis, smoothing, scaling, and structure detection
 log_snapshot(label1, val1, label2, val2, label3, val3, label4, val4, label5, val5) 
  Creates formatted log snapshot with 5 labeled values
  Parameters:
     label1 (string) 
     val1 (float) 
     label2 (string) 
     val2 (float) 
     label3 (string) 
     val3 (float) 
     label4 (string) 
     val4 (float) 
     label5 (string) 
     val5 (float) 
  Returns: void (logs to console)
 f_get_next_tf(tf, steps) 
  Gets next higher timeframe(s) from current
  Parameters:
     tf (string) : Current timeframe string
     steps (string) : "1 TF Higher" for next TF, any other value for 2 TFs higher
  Returns: Next timeframe string or na if at maximum
 f_get_prev_tf(tf) 
  Gets previous lower timeframe from current
  Parameters:
     tf (string) : Current timeframe string
  Returns: Previous timeframe string or na if at minimum
 supersmoother(_src, _length) 
  Ehler's SuperSmoother - low-lag smoothing filter
  Parameters:
     _src (float) : Source series to smooth
     _length (simple int) : Smoothing period
  Returns: Smoothed series
 butter_smooth(src, len) 
  Butterworth filter for ultra-smooth price filtering
  Parameters:
     src (float) : Source series
     len (simple int) : Filter period
  Returns: Butterworth smoothed series
 f_dynamic_ema(source, dynamic_length) 
  Dynamic EMA with variable length
  Parameters:
     source (float) : Source series
     dynamic_length (float) : Dynamic period (can vary bar to bar)
  Returns: Dynamically adjusted EMA
 dema(source, length) 
  Double Exponential Moving Average (DEMA)
  Parameters:
     source (float) : Source series
     length (simple int) : Period for DEMA calculation
  Returns: DEMA value
 f_scale_percentile(primary_line, secondary_line, x) 
  Scales secondary line to match primary line using percentile ranges
  Parameters:
     primary_line (float) : Reference series for target scale
     secondary_line (float) : Series to be scaled
     x (int) : Lookback bars for percentile calculation
  Returns: Scaled version of secondary_line
 calculate_correlation_scaling(demamom_range, demamom_min, correlation_range, correlation_min) 
  Calculates scaling factors for correlation alignment
  Parameters:
     demamom_range (float) : Range of primary series
     demamom_min (float) : Minimum of primary series
     correlation_range (float) : Range of secondary series
     correlation_min (float) : Minimum of secondary series
  Returns:   tuple for alignment
 getBB(src, length, mult, chartlevel) 
  Calculates Bollinger Bands with chart level offset
  Parameters:
     src (float) : Source series
     length (simple int) : MA period
     mult (simple float) : Standard deviation multiplier
     chartlevel (simple float) : Vertical offset for plotting
  Returns:   tuple
 get_mrc(source, length, mult, mult2, gradsize) 
  Mean Reversion Channel with multiple bands and conditions
  Parameters:
     source (float) : Price source
     length (simple int) : Channel period
     mult (simple float) : First band multiplier
     mult2 (simple float) : Second band multiplier
     gradsize (simple float) : Gradient size for zone detection
  Returns:  
 analyzeMarketStructure(highFractalBars, highFractalPrices, lowFractalBars, lowFractalPrices, trendDirection) 
  Analyzes market structure for ChoCH and BOS patterns
  Parameters:
     highFractalBars (array) : Array of high fractal bar indices
     highFractalPrices (array) : Array of high fractal prices
     lowFractalBars (array) : Array of low fractal bar indices
     lowFractalPrices (array) : Array of low fractal prices
     trendDirection (int) : Current trend (1=up, -1=down, 0=neutral)
  Returns:   - change signals and new trend direction
Tristan's Box: Pre-Market Range Breakout + RetestMarket Context: 
This is designed for U.S. stocks, focusing on pre-market price action (4:00–9:30 AM ET) to identify key support/resistance levels before the regular session opens.
Built for 1 min and 5 min timelines, and is intended for day trading / scalping.
 Core Idea: 
 
 Pre-market range (high/low) often acts as a magnet for price during regular hours.
 The first breakout outside this range signals potential strong momentum in that direction.
 Retest of the breakout level confirms whether the breakout is valid, avoiding false moves.
 
 Step-by-Step Logic: 
 
 Pre-Market Range Identification:
 Track high and low from 4:00–9:30 AM ET.
 Draw a box spanning this range for visual reference and calculation.
 
 Breakout Detection: 
 
 When the first candle closes above the pre-market high → long breakout.
 When the first candle closes below the pre-market low → short breakout.
 The first breakout candle is highlighted with a “YOLO” label for visual confirmation.
 
 Retest Confirmation: 
 
 Identify the first candle whose wick touches the pre-market box (high touches top for short, low touches bottom for long).
 Wait for the next candle: if it closes outside the box, it confirms the breakout.
 
 Entry Execution: 
 
 Long entry: on the confirming candle after a wick-touch above the pre-market high.
 Short entry: on the confirming candle after a wick-touch below the pre-market low.
 Only the first valid entry per direction per day is taken.
 
 Visuals & Alerts: 
 
 Box represents pre-market high/low.
 Top/bottom box border lines show the pre-market high / low levels cleanly.
 BUY/SELL markers are pinned to the confirming candle.
 Added a "YOLO" marker on breakout candle.
 Alert conditions trigger when a breakout is confirmed by the retest.
 
 Strategy Type: 
 
 Momentum breakout strategy with confirmation retest.
 Combines pre-market structure and risk-managed entries.
 Designed to filter false breakouts by requiring confirmation on the candle after the wick-touch.
 
In short, it’s a pre-market breakout momentum strategy: it uses the pre-market high/low as reference, waits for a breakout, and then enters only after a confirmation retest, reducing the chance of entering on a false spike.
Always use good risk management.
Volumatic Fair Value Gaps [BigBeluga]🔵 OVERVIEW 
The  Volumatic Fair Value Gaps   indicator detects and plots  size-filtered  Fair Value Gaps (FVGs) and immediately analyzes the  bullish vs. bearish volume composition  inside each gap. When an FVG forms, the tool samples volume from a  10× lower timeframe , splits it into Buy and Sell components, and overlays two compact bars whose percentages always sum to 100%. Each gap also shows its  total traded volume . A live dashboard (top-right) summarizes how many  bullish  and  bearish  FVGs are currently active and their cumulative volumes—offering a quick read on directional participation and trend pressure.
 🔵 CONCEPTS 
 
   FVGs (Fair Value Gaps) : Imbalance zones between three consecutive candles where price “skips” trading. The script plots bullish and bearish gaps and extends them until mitigated.
  
   Size Filtering : Only significant gaps (by relative size percentile) are drawn, reducing noise and emphasizing meaningful imbalances.
 
// Gap Filters
float diff         =  close  > open  ? (low - high ) / low * 100 : (low  - high) / high *100
float sizeFVG   = diff / ta.percentile_nearest_rank(diff, 1000, 100) * 100
bool  filterFVG = sizeFVG > 15
 
  
   Volume Decomposition : For each FVG, the indicator inspects a 10× lower timeframe and aggregates volume of bullish vs. bearish candles inside the gap’s span.
   100% Split Bars : Two inline bars per FVG display the  % Bull  and  % Bear  shares; their total is always 100%.
   Total Gap Volume : A numeric label at the right edge of the FVG shows the total traded volume associated with that gap.
  
   Mitigation Logic : Gaps are removed when price closes through (or touches via high/low—user-selectable) the opposite boundary.
  
   Dashboard Summary : Counts and sums the active bullish/bearish FVGs and their total volumes to gauge directional dominance.
  
 
 🔵 FEATURES 
 
   Bullish & Bearish FVG plotting  with independent color controls and visibility toggles.
   Adaptive size filter  (percentile-based) to keep only impactful gaps.
   Lower-TF volume sampling  at 10× faster resolution for more granular Buy/Sell breakdown.
   Per-FVG volume bars : two horizontal bars showing  Bull %  and  Bear %  (sum = 100%).
   Per-FVG total volume label  displayed at the right end of the gap’s body.
   Mitigation source option : choose  close  or  high/low  for removing/invalidating gaps.
   Overlap control : older overlapped gaps are cleaned to avoid clutter.
   Auto-extension : active gaps extend right until mitigated.
   Dashboard : shows count of bullish/bearish gaps on chart and cumulative volume totals for each side.
   Performance safeguards : caps the number of active FVG boxes to maintain responsiveness.
 
 🔵 HOW TO USE 
 
   Turn on/off FVG types : Enable  Bullish FVG  and/or  Bearish FVG  depending on your focus.
   Tune the filter : The script already filters by relative size; if you need fewer (stronger) signals, increase the percentile threshold in code or reduce the number of displayed boxes.
   Choose mitigation source :
 
   close  — stricter; gap is removed when a closing price crosses the boundary.
   high/low  — more sensitive; a wick through the boundary mitigates the gap.
 
   Read the per-FVG bars :
 
  A higher  Bull %  inside a  bullish gap  suggests constructive demand backing the imbalance.
  A higher  Bear %  inside a  bearish gap  suggests supply is enforcing the imbalance.
 
   Use total gap volume : Larger totals imply more meaningful interest at that imbalance; confluence with structure/HTF levels increases relevance.
   Watch the dashboard : If bullish counts and cumulative volume exceed bearish, market pressure is likely skewed upward (and vice versa). Combine with trend tools or market structure for entries/exits.
   Optional: hide volume bars : Disable  Volume Bars  when you want a cleaner FVG map while keeping total volume labels and the dashboard.
 
 🔵 CONCLUSION 
 Volumatic Fair Value Gaps   blends precise FVG detection with lower-timeframe volume analytics to show not only  where  imbalances exist but also  who  powers them. The per-gap Bull/Bear % bars, total volume labels, and the cumulative dashboard together provide a fast, high-signal read on directional participation. Use the tool to prioritize higher-quality gaps, align with trend bias, and time mitigations or continuations with greater confidence.
ICT SIlver Bullet Trading Windows UK times🎯 Purpose of the Indicator
It’s designed to highlight key ICT “macro” and “micro” windows of opportunity, i.e., time ranges where liquidity grabs and algorithmic setups are most likely to occur. The ICT Silver Bullet concept is built on the idea that institutions execute in recurring intraday windows, and these often produce high-probability setups.
🕰️ Windows
London Macro Window
10:00 – 11:00 UK time
This aligns with a major liquidity window after the London equities open settles and London + EU traders reposition.
You’re looking for setups like liquidity sweeps, MSS (market structure shift), and FVG entries here.
New York Macro Window
15:00 – 16:00 UK time (10:00 – 11:00 NY time)
This is right after the NY equities open, a key ICT window for volatility and liquidity grabs.
Power Hour 
Usually 20:00 – 21:00 UK time (3pm–4pm NY time), the last trading hour of NY equities.
ICT often refers to this as another manipulation window where setups can form before the daily close.
🔍 What the Indicator Does
Draws session boxes or shading: so you can visually see the London/NY/Power Hour windows directly on your chart.
Macro vs. Micro time frames:
Macro windows → The ones you set (London & NY) are the major daily algo execution windows.
Micro windows → Within those boxes, ICT expects smaller intraday setups (like a Silver Bullet entry from a sweep + FVG).
Guides your trade selection: it tells you when not to hunt trades everywhere, but instead to wait for price action confirmation inside those boxes.
🧩 How This Fits ICT Silver Bullet Trading
The ICT Silver Bullet strategy says:
Wait for one of the macro windows (London or NY).
Look for liquidity sweep → market structure shift → FVG.
Enter with defined risk inside that hour.
This indicator essentially does step 1 for you: it makes those high-probability windows visually obvious, so you don’t waste time trading random hours where algos aren’t active.






















